package com.haoze.nurse.feign;

import feign.Headers;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * 用户所属部门相关信息
 *
 * @Author: Chenchao
 * @CreateTime: 2019-12-17 08:25
 */
@Service
@Headers("Content-Type:application/json")
@FeignClient(name = "api-admin")
public interface UserDeptService {

    @GetMapping("/system/user/getDeptListById")
    List<Map<String,String>> getDeptListById(@RequestParam(value = "id") final String id);
}
